#include <iostream>
using namespace std;
int main(){
	/*cout << "请输入两个字符串：" << endl;
	string s1, s2;
	cin>> s1 >>s2;
	cout << ((s1 >s2) ? s1 : s2) << endl;
	cout << (s1.size() > s2.size() ? s1:s2)<< endl; */
	/*int a[4] = {0x12, 0x55, 0xff, 0xbb};
	//定义一个指针的数组
	int* p1[4];
	//定义一个数组指针
int(*p2)[4];
p2 = &a;
for (int index = 0; index < 4; ++index) {
	p1[index] = &a[index];
	cout << *(p1[1]) << endl;
	cout << (*p2)[2] << endl;
}*/
	/*char a[] = "helloworld";
	//指针p1的只想不能修改
	char* const p1 = a;
	//p2指向的数据是不能改变的
	char const* p2 = "helloworld;"
	char const* const p3 = "helloworld"
	//p1=p2;
	p2[2] = 'a'*/
	/*char ch = 'a';
	char* p1 = &ch;
	char** p2 = &p1;

	*p1 = 'b';
	cout << ch << endl;

	char ch2 = *p1 + 1;
	*(p1 + 1) = 'c';
	char ch3 = *(p1 + 1);
	cout << ch3 << endl;*/
	const int size = 10;
	int a[size];
	for (int index = 0; index < size; index++) {
		a[index] = index;
	}
}	int* pb = begin(a);
int* pe = end(a);
while (pb != pe) {
	*pb = 0;
	pb++;
}
for (int index = 0; index < size; index++) {
	cout << a[index] << endl;
}